// 常量
const constant = {
    // 状态
    STATUS: {
        DISABLED: 0,
        ENABLE: 1
    },
    YES_NO: {
        YES: 0,
        NO:1
    },
    USER_SEX: {
        MALE: 0,
        FEMALE: 1
    },
    CLASS_STATE: {
        NOT_GRADUATING: 0,   //未毕业
        GRADUAT: 1    //已毕业
    },
    REVIEW_STATE: {
        NOT_SUBMITTED: 0,  // 未提交
        PENDING_APPROV: 1,  // 待审核
        APPROVED: 2,   // 审核通过
        NOT_APPROVED: 3  // 审核未通过
    },
    SCHOOL_CALENDAR_STATE: {
        ONGOING: 0,  // 进行中
        FINISHED: 1,  // 已完成
        NOT_BEGINNING: 2,   // 未开始
    },
    FLOW_STATE: {
        PENDING_APPROV: 0,  //待审核
        APPROVED: 1,  // 审核通过
        NOT_APPROVED: 2,  // 审核不通过
    }
}

// 枚举相关
const enums = {
    // ************* 通用 *****************
    STATUS: [
        {
            id: 0,
            text: "禁用",
        },
        {
            id: 1,
            text: "启用"
        }
    ],
    YES_NO: [
        {
            id: 0,
            text: "否",
        },
        {
            id: 1,
            text: "是"
        }
    ],
    USER_SEX: [
        {
            id: 0,
            text: "男",
        },
        {
            id: 1,
            text: "女"
        }
    ],
    // ************* 业务 *****************
    // 班级状态
    CLASS_STATE: [
        {
            id: 0,
            text: "未毕业"
        },
        {
            id: 1,
            text: "已毕业"
        }
    ],
    // 学校类型
    SCHOOL_TYPE: [
        {
            id: 1,
            text: "本科"
        },
        {
            id: 2,
            text: "专科"
        }
    ],
    // 是否开课
    BEGIN_CLASS_STATE: [
        {
            id: 0,
            text: "未开课"
        },
        {
            id: 1,
            text: "已开课"
        }
    ],
    // 培养计划生成方式
    GENERATE_STATE: [
        {
            id: 0,
            text: "未生成"
        },
        {
            id: 1,
            text: "已生成"
        }
    ],
    // 培养计划生成来源
    SOURCE_TYPE: [
        {
            id: 0,
            text: "方案生成"
        },
        {
            id: 1,
            text: "后期添加"
        }
    ],
    // 调查问卷指标类型
    QUESTIONNAIRE_ITEM_TYPE: [
        {
            id: 0,
            text: "分值型"
        },
        {
            id: 1,
            text: "意见型"
        }
    ],
    // 调查问卷状态
    QUESTIONNAIRE_STATE: [
        {
            id: 0,
            text: "未开始"
        },
        {
            id: 1,
            text: "进行中"
        },
        {
            id: 2,
            text: "已结束"
        },
        {
            id: 3,
            text: "作废"
        },
    ],
    // 审核状态
    REVIEW_STATE: [
        {
            id: 0,
            text:"未提交"
        },
        {
            id: 1,
            text:"待审核"
        },
        {
            id: 2,
            text:"审核通过"
        },
        {
            id: 3,
            text:"审核未通过"
        },
    ],
    // 工作状态
    USER_WORK: [
        {
            id: 1,
            text:"在职"
        },
        {
            id: 2,
            text:"离职"
        },
    ],
    HOMEWORK_TYPE: [
        {
            id: 0,
            text: "电子"
        },
        {
            id: 1,
            text: "纸质"
        },
    ],
    HOMEWORK_STATUS:[
        {
            id:0,
            text:"未开启"
        },
        {
            id:1,
            text:"进行中"
        },
        {
            id:2,
            text:"已结束"
        },
    ],
    CLASSROOM_STATUS: [   //课堂状态
        {
            id: 0,
            text: "正常"
        },
        {
            id: 1,
            text: "迟到"
        },
        {
            id: 2,
            text: "早退"
        },
        {
            id: 3,
            text: "请假"
        },
        {
            id: 4,
            text: "旷课"
        },
    ],
    FLOW_STATE: [   // 流程审核状态
        {
            id: 0,
            text: "待审核"
        },
        {
            id: 1,
            text: "通过"
        },
        {
            id: 2,
            text: "不通过"
        },
    ],
    SELECTIVE_TYPE: [   // 课程类型
        {
            id: 0,
            text: "必修"
        },
        {
            id: 1,
            text: "选修"
        }
    ],
}
exports.constant = constant
exports.enums = enums
